package com.cloud.open.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cloud.open.entity.AppAuthorization;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *  应用授权服务类
 * </p>
 *
 * @author wenjin
 * @since 2019-09-25
 */
public interface AppAuthorizationService extends IService<AppAuthorization> {

    boolean deleteByResourceIds(List<Integer> resourceIds);

    boolean deleteByAppId(Serializable appId);

    List<AppAuthorization> getByAppId(Integer appId);

    boolean saveAuthorizations(Integer appId, List<Integer> resourceIds);

}
